package homework4;

class Count {
	public int countNumber(Telephone[] t){
		int count = t.length;
		return count;
	}
	
	public int countPrice(Telephone[] t){
		int sum = 0;
		for (Telephone telephone : t) {
			sum += telephone.getPrice();
		}
		return sum;
	}
}
